<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/12/16
  Time: 15:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>JStl</title>
</head>
<body>
<%
    request.setAttribute("age",17);
%>

<c:if test="${age>=18}">
    你已经成年
</c:if>
<c:if test="${age<18}">
    你已经成年可以观看
</c:if>



</body>
</html>
